import request from '@/utils/request';

/**
 * 服务资质
 */
export function setQualifications() {
	return request({
		url: '/api/user/qualifications2',
		method: 'GET'
	})
};

/**
 * 隐私协议
 */
export function setPrivacyAgreement() {
	return request({
		url: '/api/user/privacy_agreement',
		method: 'GET'
	})
};


/**
 * 用户协议
 */
export function setUserAgreement() {
	return request({
		url: '/api/user/user_agreement',
		method: 'GET'
	})
};

/**
 * 客服接口
 */
export function setTiktokIm() {
	return request({
		url: '/api/ttlogin/tiktok_im',
		method: 'GET'
	})
};

/**
 * 查询订单
 */
export function getOrderDetails(data) {
	return request({
		url: '/api/delivery/getOrderInfo',
		method: 'POST',
		data
	})
};

/**
 * 是否展示
 */
export function isxhfcheck() {
	return request({
		url: '/api/delivery/isAuthor',
		method: 'POST'
	})
};

/**
 * 核销码
 */
export function hxcode(data) {
	return request({
		url: '/api/delivery/writeoff',
		method: 'POST',
		data
	})
};
/**
 * 获取省市区信息 
 */
export function getArea(){
		return request({
		url: '/api/area/getAreaList',
		method: 'POST',
	})
}